

// Mao.Ajax.request({
	// url:"http://www.sohu.com",
	// method:"GET", 
	// success: function(){
		// alert(123);
		// Mao.$$("content").innerHTML = this.responseText;
		// alert(this.responseText.length);
	// }
// });
jQuery.ajax({
	url: "http://beanbean.be.funpic.org/x.html",//我的页面
	success: function(){alert(arguments[0])}
})


//"http://www.sohu.com",
window.onload = function(){
		//级联菜单：分三级加载
		Mao.Ajax.request({
			url: "_region.xml",
			params:{type:"1", p_id:"1"},
			method:"GET",
			success: function(){
				var res = this.responseXML.getElementsByTagName("china_region");
				var i=0, len = res.length, html=[], val, text; 
				for(var i =0; i<res.length;i++){
					val = getValue(res[i], "id");
					text = getValue(res[i], "name");
					html.push("<option value='"+val+"'>"+text+"</option>");
				}
				Mao.$$("province").innerHTML = html.join("");
				function getValue(node, tag){return node.getElementsByTagName(tag)[0].firstChild.data;}
			}
		});
		
		//市
		Mao.$$("province").onchange = function(e){
			var v = this.value;
			Mao.Ajax.request({
				url: "_region.xml",
				params:{type:"2",p_id:v},
				method:"GET",
				success: function(){
					var res = this.responseXML.getElementsByTagName("china_region");
					var i=0, len = res.length, html=[], val, text; 
					for(var i =0; i<res.length;i++){
						val = getValue(res[i], "id");
						text = getValue(res[i], "name");
						html.push("<option value='"+val+"'>"+text+"</option>");
					}
					Mao.$$("city").innerHTML = html.join("");
					function getValue(node, tag){return node.getElementsByTagName(tag)[0].firstChild.data;}
				}
			});
		}
		
		//区，县
		Mao.$$("city").onchange = function(e){
			var v = this.value;
			Mao.Ajax.request({
				url: "_region.xml",
				params:{type:"3",p_id:v},
				method:"GET",
				success: function(){
					var res = this.responseXML.getElementsByTagName("china_region");
					var i=0, len = res.length, html=[], val, text; 
					for(var i =0; i<res.length;i++){
						val = getValue(res[i], "id");
						text = getValue(res[i], "name");
						html.push("<option value='"+val+"'>"+text+"</option>");
					}
					Mao.$$("area").innerHTML = html.join("");
					function getValue(node, tag){return node.getElementsByTagName(tag)[0].firstChild.data;}
				}
			});
		}
	}